simplify conversion function
rename dir