adding to queue properly and not duplicating