update to sort automatically