adding export statements to var declarations