Replace ptr containers