fixed logic in reject