corrected where i went wrong with adding the code to be an array