contains scope was not working. fixed