many changes. implemented logit...