clean code - removed a continue