updating investments instead of creating