corrected missing variable