add self and datetime