added select input for functions