error fixing and makefile