fix define variable as lambda