updated for halo profiles