right of entry and capital gain