remove diamond type