still can't make the logistic work - missing a subtlety somewhere?