add before after check