added some stuff to get C_star, but it does not seem to work