adding more logging statements