corrected error in forcing function and velocity correction