moved helped content functions to within main functions