added function definition