fix output and makefile