changed queuType approach