var to fun