add arraylist for communication thread