updating upper bounds