cleaning up the previous merge -- moving it out to helpers.invertLiterate