Replaced the remaining data.() with if x in data