c version of program