refine definition of input elements