relational encoding