some bugs: 1. d12_setrd() missed 2. END COLLECTION missed