when extending union/composition let user choose a relation instead of unit