added function to load map