updated logic for personal best