check maximum position
again
Merge pull request #13 from john30/master

check position