modify input parsing