private scope of indexmap changed to public