working on typeId attribute