this was a good one.
simpler and faster way than using -1.