fixed in_array calling