getting map to work