populate the tempTable