stopping rule skeleton