conditional on container type