Correct way of calling the function