moved queue macro