halfway into getting map to work