correct c.hat.gen
restructure
add constant lambda