infinite loop when added by descending order