an invesment can realise capital gains