adding input for query