minor orbitSum rewrite