remove unnecessary repetition