the flux of a composite reverse osmosis or nanofiltration membrane having a polyamide discriminating layer is enhanced in a one - step process in which the discriminating layer is treated with ammonia or certain alkylamines . it is possible to control both rejection rate and flux of the membrane as well as convert reverse osmosis membranes into nanofiltration membranes .