minor code reformat