read and display inputs