implemented peak and amp methods