remove useless nested before each