delete doublicate code