expand level if statement