override all occurences of rowid when necessary