this is for array
adding modification from yesterday
sort is ready