changed queue to list