fixing bug where each loop lists order wasn't being consistent.