now to make queue work