fixed non-static function bullshit