added inBounds