changed default H function and plotting