close #14, fixed off by one