cleaned this up using global and exported comments at the top of the document