fixed a few function declarations that were not static