got really close on the prepdata function; needs just a bit of work still, but getting closer than ever; need to start on the last step