minor code issue