move class method to proto method