removed function isdraft in the model