added addMissingRows() method