pass11 updated. TODO: prettify, reverse array, write to file