changed continue to else statement