no arraylist needed