edited to be an array