quick tweak to code