add missing variable assignment