timeBlock function