proper packet insertion