use LReal as function