small cosmetic changes + changed forEach.reversed -> forEach.reverse