fixed logic. again. sigh