styles added, rnd function added