change directorys structure