modify the method of checking time out