added logging for the use case