still needs more work on period clock adjustment