A self cleaning filter which works in dead end mode consists of a plurality of membrane module placed in a tank of waste water with an air diffuser to bubble air up over the surface of the membrane, the filtered water permeates through the membranes and is led away and the air keeps the membrane surface clear.