fixes

arithmetic fix