add remove primitive to the resource