adding before method  tag