add isRef variable to funcsto