queue functions. beta