minor code syntax fixes