script to find profitable/not profitable