become new array pointer returned after mallocing