remove relation function