finalize some things