refactory dir