changed the way of getting data from JInput