it works with timer