finally splitting offset and gain calculations to incorporate ST views for offsets