temp setup, but giving wrong result