fixed repitition error