methods to check if one need is contained