matrix and stuff