fixed picking up bug, was error in getting input