modified input a little bit