I take array list instead of a stream