Green techniques for wastewaters