impl save new ids functionality