missingData function added but not complete