fixing calling this in static method