added find_profit