getting the warehouses pulling from data and one template