clean up shape iterator function