added random seed etc.