updated inputs from text to number