adding symmetry code