edited c file to make it capable of running