fix missing variable substitution that ray pointed out