didnt build the array properly