problem of incorrect bit count within specified pos range is solved; corret itoperation return value