capital gain invested earlier