fix minor issues and ad formatting