change D to 1 by default