trying to find problem of constant refresh