adding maxdiameter stuff - not finished