updated sprial matrix type problems