creates is_symmetry function