bug on best_pulses fixed