update package and length of generated id