added queue to pointers