minor update to code