double build for references