rewrite syntax for matchheight