re-write in C began