use createArray better