readded in mathinline changes which seem to have been lost somewhere
along the line