detect symmetry