altered offset calculation