offset by one error

output data was being labelled wrong by 1. Fixed