replaced strncmp awith the new hashncmp