added moment and isEmpty