update contain method