bug with quint-in-out and other fixes to match penner equations