use continue rather than next