started improving the 511 peak lookup