sort added, corrections according with remarks
corrections according with remarks