trying to avoid blinking effect in app