made enter abort the operation when its invalid