update minor code