fixing kresult declaration without sort problem