changed varible name C to i