handle symm matrix