sorting out bounds