improve return of bubble sort