correct input processing