added a matrix stack