added code types and dnd