change precedencemap to inpprecedencemap