implemented ParseMap