adding random heuristic and amazon freedom check