fixed the construction of the bounds