fixing up the logic post formatting