added missing code block exit