cleanup
changed dir diff procedure