changed result to have comparable