add object pool pattern

Add missing object pool pattern.