for packet code update