modify variable constructor(problem still existed)