had some problems with array lists