fixed a little error in a function call