adding function registry