mod if statement