update a8freq.c (big update)