add before method