Changes val to var