uses nested befores