solving some input issues