deleting matrix==matrix, making integer indexing