fixed overflow
Merge pull request #41 from tassiahmed/working

fixed overflow