the original solution not passed the system test, debug the condition for it , now OK