added function with parameters