edits main for mass repeat