added fuctionality so that deleting stock rectifies all outstanding investments in that stock