added security for capital gains