added midpoint dispalcement and particle deposition