modify makefile and reference point