modified to render maxheight length of frets