[fix] parameter by reference
[fix] call reference to a non-static function (made static now)