add argument to select join type