allocating array is going mad.