minor code clearing