fixing syntax errors

no 'self' in static functions