basic implementation of add new array feature