added element type to type to pass validation