begin to generalize; check for dictionary datatype, convert to np array