updating queue data implementation.