timer works properly