revised "combine.c" according to guidelines