fixed the looping issue and additional deletion issue. now for formatting and mods