removing unused matrices
tidy up a bit
tidy up