refactor

var tmp *path,  refactor