changing if clause