code to automatically update personal bests