finalize some things needed