cleanup circular morphing code