add new function for get chip life