changed the structure which keeps the R table