Scientific study of the drainage system and revamping it