formatting

moved public procs to top of file