removing offset calculation