merge sub
move sad.c sad.h