capture input