minor code revisions