add c file for stack