able to use int matrix