fixed a function call