fixed logic casing again