add replace function
Merge branches 'master' and 'develop'