finalize and center the