Novel compounds inhibit anti-apoptotic proteins B- cell lymphomas 2 (B cell lymphoma) and Bcl-XL includes compounds of formula (I) and public formula (II) disclosed herein, and the liposome composition including B cell lymphoma inhibitor compounds. These compositions can be used for treating cancer.