fixing syntax of c