finalize for prototype