new script to fint a better 3 peak