randomize-functions added