modifying random