some tricks for C code