adding finalizing stuff