removed sum files, iterative-like loop format