added hattersley solution for udunits pyke rules