changed the duration to 9 and fixed the reset logic