fixed logic error <>