got class static function working