DCD Algorithm in Wireless Sensor Networks with enhance security mechanism