finally got hermite right