change log_out method