Revert "add function"

This reverts commit e9f02b09b77bd35d81269079b65e13a5d67c0d78.