finish var.c, move to func.c