(bug) update algorithim to accomodate more randomness