added parameter for relation name