no more repetitions of queues when removing, but still getting indexoutofbounds exceptions