change the var type to array