Designing the drainage layer