removed extraneous loop that was resetting one element of allframesfile to the wrong thing