added symmetry code