add invest code