last histogram replaced with latice