Made data an array variable