added multiple equtions for h