split the handleInput up into two