code refinement and removed unused code from PoolConfig class