add queue wrapper around array