return and log