added maurilio di cicco's plane-to-plane constraint