Revert "taken out resetplane function"

This reverts commit bd8fb4d3dcc10183615328fb6e5956ce16aa45df.