add new code for get curLife