started adding changes to upload variables