fixed minor redundancy with packets