refactor 3 rels as a sample