fixed algorthim
Merge pull request #171 from kmabey/LocalDev

fixed algorthim
Merge pull request #172 from kmabey/dev

Dev