added number of NA's to output