prevent clock from continuing past zero