removed unused args from call_peak and also fixed crash bug.