nice one @Suryasis - way easier and more concise to just iterate in reverse. mind fixing the indent/formatting in L25-L29 and I'll merge?