make ReadContainer function