modified if statement