6a7ae6c improving nagation algorithm