assembling and adding correct references