fixed the failure codes