finish charge auto function