clean up indentation in iterate