finalizing models