code cleanup during docuentation phase