added variable with function code