add cp function
Merge branch 'develop'