modified 06/ total.c