a bit of cleanup on the relation