remove unneeded variables in Q5.c