removed unnecessary offset conversions