enable tb to return just max or min time

if we only set min or max at the lowest level, we don't need to check the bound flag, we only need to check for null min or max