added defs for data prep