modify packet class
update to packet functions