rename buf to px