finalized NS solver