made processing mode corrections and formatting errors