correct the call of function