upgrade user checks for undefined data