added MAX_ELAPSE