adapted import to set first relation to main relation