finalizing with references