making custom render interface more clear
fixing function as third argument