some changes to test pooling later cpp in new file