- adding replace method
- added coments