improved code organization, implemented clpt_isotropic