modify to relation to have its type in itself