make localize work with tuples (id,data)