minor code beautify