refactored Patch
refactored Flux correction