culling out usless layers/files