codes cleanup; matrix is too big&sparse