fixed upgrade example