swap this for correct self keyword in static function