minor tweak to code