improved `continue` trimming