EHash insert func. modified