updated: pooling + fixed critical bug