removed arrayslist and registred hashmap for kryo