added parameters for functions