small modification of if statement to match web content