modify generate display type