adding random to resolve #28