counted queue count added, not working properly yet