fixed what looked like an off by one error but wasnt