got the input to work. Now working on efficieincy