update invest()