fixed a minor but important bug - used only a few taylor series steps instead all