working on bisort pooling