improved periodic check