changed the format to use the array