fix on vartable to support functions