created normalize and randomize scripts