changed some logic with updating pets