enter...
fixed upperbound check