some methods about queue