Duplication

there was duplicated code