added replace method
helper makefile