add timer for lock