working on some of the formtting functions