fix mismatch in profit, add console output