replaced shift with index based approach, ingredients array now beigns at 0, returns nothing at end of array.