cleaned and fixed the -D flag