worked on fold.c