mat.h really fixed this time