finish mongoose component