modified getting a map of instance