set type based on Class name if user has not defined type on header