making contains relation work