added indexed matrix support on create