decorate class method