updated hash values to be only positive