corrected note insert order from array