still trying to fix the passing of the array in