changed a few function definitions to static