williams-queue: trim excess implementation