fixing which way we use reosurce container