condition receives only currentQueue and newQueue