some useful functions for DOC484