Revert "add function"

This reverts commit a6ec485536ccb9291bb49dcf3a7fe8c50b6dfa87.