fixed logic error in last commit