correction in reflection offset calculation
there might still be a mistake