nearly all issues fixed. problem with fractional ranges