finalize and populate