modify input function to flexible
commit before lunch