add function.