raise error,assign all 1s