add for C99 support
refactoring code
add result