some minor editing
add some simple c