implement symmetrization and test code