remove trailing spaces
WIP randomized queue iterator fix