prepping data for logit