change to c99 std intead