arraylist remove on short distance is working