Consistentcy in iteration blocks and remove unnecessary code

Just making some things consistent across files. Also removing some unnecessary code.
unfortunately today it still is :(