changed to save counter update in SP