update MAX_QUEUE_SIZE to 1000