applying directory sturcture