was not using logf variable reference