a new day, a new s algo - fix #946