use id instead of resourceId