organizing mapinitialize functionality