missingData function fixed
dafuq