add missing variable declarations