make queue print by attribute work