change to esure that data is an item in an aray