form done, randomize functoin etc