changed to rand again