change name of variable to matt_dir