do not store a pointer to a temporary object