compute_C implemented