my code has repetition issues