removing queue structure