remove third dir layer