solves round off problem.
Merge pull request #320 from jasvir99/dirty

solves round off problem.