sorting out matrix stuff