change path of mat variable