refining the warehouse