implement add-row operation