updated function definition
Magic happens\!