updating input parsing