# 2k: queue logic