fixing function prototype for processInput