implement some of relate method.