removing dead code in Diamonds