removed duplication of input