implement map equals