function return and function call added