change position in case of multiple inputs