update consts and difficulty