finish all the stub with reference