use List.take() instead of sublist()