duplicate if statement