created a version where we infer charge instead of current peak amplitude