changing to var