added queue to list functionality