relation function about active