added specific input handling code