problems in sorting fixed.