add queue & common elements