remove map loaded function