working on assigning new array, code is a mess