manage input