changed c syntax