read values from inputs