removed wrong repeated condition