changing one reference from Map to Pinmap