refactor packet properties