update write path.