removed early exits