minor code enhancement