off by one errors needed fixing.