Add main to result entity