Study of wastewater treatment for fulfilment of clean water