comment
simplify_loops. wip