figured out way to link file to structure