added function with parameter