trying to fix interval timer