tightened boundaries & added stats output