modified put_id, check # and blanck lines