Role of environment and mergers