added method to get current queuesize