fixed static function in sampleservice