dcnf and input

fixed a few errors