changed continue to if's