working on matched flux