fixed invalid pool name that printed by toString + code clean up