adding logging statement