added original and modified c code