changed contains to make it strict