finalize saving entities via entities array