add draft type and delete function.