renamed NDF to DoF
added legend for graph