working on function lookup in x_method