add function binding