changed makefile, added routine