packet now indexes from 0 instead of 1