add queue solution