add local variable hist