add function for method look up