added some rand thing