removed unnecessary random call