implemented wolfram in main code