fixed function call, made it static