better log return in example