better version bounds

Tested on linux ghc 7.6.2 and mac ghc 7.8.2