edit code footer and rand_string