updated function call