beginning of array creating functions