added symmetry_top function