fixing a few bugs with grabbing inputs