dynamically set variables based on phaseName cols, use -1 instead of 0