finalize the backend