added lookup.r