loops fixes 2013