bug correction: return instead of continue instruction