data prep for NDGAIN