update diamond.pl with comment