changed dir vars to array collums