add instance id and type