removing unused matrices
tidy up a bit