skeleton function in compare.c