cleanup, keep only H matrix