function contains implemented