added consuming energy when charging