creating a reference table