compiles after changing unit_decl type to record format