input captured correctly