replace captureteop with captureresource