start to capture input