changed to inclusive begin/end