adding modified m, h, and u, also tweaked h