give a correct function to adjust the size of the dia in the options. For now it is not used after that, but maybe it will someday.