missed attr_accessor :type