before add the sorted assignment