C version updated