avoid repeat input