comlete add function ,can not compile