remove redundant path assignment