working correctly for some cases
Merge branch 'master' of https://github.com/rgrannell1/descartes