remove "finalize_state()". This call won't be done anyway