fixing directories formats