trying to solve del direc error