fd and dk both going
corrected dk optimizations