added begin of entry reuse to minimize garbage created by the queue