edited function call