use before method