fixed the equality for maps