convert vars to public