updated logical error for sd