update bounds